<template>
  <div>
    <h1>Home: {{ $store.getters.totalPrice }}</h1>
    <h1>Home: {{ $store.getters.totalCountN(5) }}---调用返回的函数 传值5</h1>
    <hr />
    <h1>---setup\hooks-Getters---</h1>
    <h2>{{ nameInfo }}</h2>
    <h2>{{ ageInfo }}</h2>
    <h2>{{ heightInfo }}</h2>
  </div>
</template>
<script>
import { useGetters } from "../hooks/useGetters";
export default {
  setup() {
    const storeState = useGetters(["nameInfo", "ageInfo", "heightInfo"]);
    return {
      ...storeState,
    };
  },
};
</script>
<style>
</style>
